package rtlmmap

type SystemConfig interface {
	FrameLength() uint64
	CenterFrequency() float64
	SampleRate() float64
}

type Config struct {
	fl uint64
	fc float64
	sr float64
}

func (c Config) FrameLength() uint64      { return c.fl }
func (c Config) CenterFrequency() float64 { return c.fc }
func (c Config) SampleRate() float64      { return c.sr }

var DefaultLTEConfig = Config{19200, 874.2e6, 1.92e6}
var DefaultFMConfig = Config{19200, 104.1e6, 1.92e6}

func (c *Config) SetCenterFrequency(f float64) { c.fc = f }
